using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter40
{
	/// <summary>
	/// Example08: Location an Electron
	/// The speed of an electron is measured to 
	/// be 5.00 \times 10^3 m/s to an 
	/// accuracy of 0.00300%. Find the minimum uncertainty in 
	/// determining the position of this electron.
	/// </summary>
	public class Example08
	{
		public Example08()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.Momentum deltap = new L.Momentum();
			deltap.X = 0.003E-2*5.0E3*L.Constant.ElectronMass;
			L.Position deltax = new L.Position();
			deltax.XVariableQ = true;
			L.QuantumPhysics.UncertaintyPrinciple(deltax,deltap);
			result+=Convert.ToString(deltax.X);
		}
	}
}
